﻿package com.gengine.resource.info
{
    import flash.utils.*;

    public class DataInfo extends ResourceInfo
    {
        protected var _byteArray:ByteArray;

        public function DataInfo(param1:Object)
        {
            super(param1);
            return;
        }// end function

        public function get byteArray() : ByteArray
        {
            return this._byteArray;
        }// end function

        override public function set data(param1:Object) : void
        {
            super.data = param1;
            this._byteArray = param1 as ByteArray;
            return;
        }// end function

        override public function set cacheBytes(param1:ByteArray) : void
        {
            return;
        }// end function

        override protected function writeCacheBytes(param1:ByteArray) : void
        {
            return;
        }// end function

        override public function dispose() : void
        {
            if (this._byteArray)
            {
                this._byteArray.clear();
                this._byteArray = null;
            }
            super.dispose();
            return;
        }// end function

    }
}
